using System;
using System.Web.UI;
using Facebook.API;
using Facebook.WebControls;

public partial class MasterIFrame_Default2 : Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		FacebookAPI facebookAPI = ((CanvasIFrameMasterPage) Master).FacebookAPI;
		int albumCount = facebookAPI.GetPhotoAlbums().Count;
		lblAlbums.Text = facebookAPI.GetUserInfo().Name + ", you have " + albumCount +
		                 " album" + (albumCount == 1 ? "" : "s") + ".";
	}
}